<div ng-controller="SystemMenuController" class="container-fluid">
    <div class="row">      
        <div class="col-lg-4 col-md-4 col-sm-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <a class="btn btn-primary" ng-click="collapseAll()">
                        <i class="fa fa-compress"></i> 
                        全部折叠
                    </a>
                    <a class="btn btn-primary" ng-click="expandAll()">
                        <i class="fa fa-expand"></i> 
                        全部展开
                    </a>
                    <a class="btn btn-primary" ng-click="refreshCache()">
                        <i class="fa fa-refresh"></i> 
                        刷新缓存
                    </a>
                </div>
                <div class="panel-heading">
                    <a class="btn btn-primary" ng-click="addRootMenu()">
                        <i class="fa fa-plus-square-o"></i> 
                        新增根菜单
                    </a>
                    <a class="btn btn-primary" ng-click="addSubMenu()">
                        <i class="fa fa-plus"></i> 
                        新增子菜单
                    </a>
                    <a class="btn btn-primary" ng-click="deleteMenu()">
                        <i class="fa fa-remove"></i> 
                        删除菜单
                    </a>
                </div>
                <div class="panel-body">
                    <ztree option="menuTreeOption"></ztree>
                </div>
            </div>
        </div>
        <div class="col-lg-8 col-md-8 col-sm-6">
           <div class="panel panel-default">
                <div class="panel-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label class="col-lg-1 control-label">ID</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.tid" type="text" disabled="" class="form-control" />                                
                            </div>
                            <label class="col-lg-1 control-label">根ID</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.root_id" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">父ID</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.parent_id" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">层级</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.level" type="text" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label">标签</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.label" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">状态</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.status" type="text" class="form-control" />
                            </div> 
                            <label class="col-lg-1 control-label">排序</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.order_number" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">分类头</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.is_head" type="text" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label">图标</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.icon" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">国际化</label>
                            <div class="col-lg-2">
                                <input ng-model="currentMenu.translate" type="text" class="form-control" />
                            </div>
                            <label class="col-lg-1 control-label">路由</label>
                            <div class="col-lg-5">
                                <input ng-model="currentMenu.sref" type="text" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label">备注</label>
                            <div class="col-lg-11">
                                <textarea ng-model="currentMenu.remark" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-lg-offset-10 col-lg-1">
                                <a class="btn btn-primary" ng-click="saveMenu()">
                                    <i class="fa fa-save"></i> 
                                    保存
                                </a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="panel panel-transparent">
                <div class="panel-body">
                    <uib-tabset>
                        <uib-tab heading="Namespace">
                            <grid-pagination option-model="namespaceGridOptions" edit style="height:400px"></grid-pagination>
                        </uib-tab>
                        <uib-tab heading="Url">
                            <grid-pagination option-model="urlGridOptions" edit style="height:400px"></grid-pagination>
                        </uib-tab>
                    </uib-tabset>
                </div>
            </div>
        </div>
    </div>
</div>